home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / CPlus.Dev$ 6⁄8⁄90 / 0138-c++ & the heap-Jun90 < prev    next >
Encoding:
Text File  |  1990-06-08  |  1.3 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    0905530                         4-June-90        08:15PDT
  2.  
  3. From:   D4202                           HLH Assoc, Seth Haberman,PRT
  4.  
  5. To:     CPLUS.APPLE$                    C++ Interest List--Apple Employees
  6.         CPLUS.DEV$                      C++ Interest List--Developers
  7.         MACDTS                          Macintosh Developer Tech Supt
  8.  
  9. Sub:    c++ & the heap
  10.  
  11.  
  12.     To C++ developers,
  13.  
  14.  
  15.         We have been using c++ on the 80x86 platform of machines (especially
  16. under windows) and will now be turning our project over to the mac for more
  17. development work.  Does the MPW C++ compiler take care of memory references in
  18. or is everything locked down in a standard heap?  That is -  let's say I have a
  19. class test and then an array of "pointers" to instances of this class i.e. test
  20. *array[N].  Now when a method is called such as array[5]->do_something(), will
  21. the compiler generate code to ensure that array[5] becomes locked when any of
  22. its members (items, functions) come into scope?
  23.     On the 80x86 side (especially under CommonView), everything! is locked down
  24. and the heap works just like a malloc heap (even in windows).
  25.     Are there any standard tricks in the "mac" world for this or is there
  26. generally just a standard locked heap (or zone) within the global heap?
  27.  
  28.  
  29.     - thanks,
  30.     - scot shinderman
  31.     - montage nyc
  32.  
  33.